<?php
/**
 * Created by PhpStorm.
 * Author: Shadow
 * Date: 2022/7/7
 * Time: 2:48 下午
 * description: api.php
 */

use think\facade\Route;

Route::post('login',"login/doLogin");

Route::get('getCaptcha','login/getCaptcha');


Route::group(function (){
    Route::get('list','course/list');//课程列表接口
    Route::post('add','course/add');//课程添加接口
    Route::get('del','course/del');// 课程删除接口
    Route::get('batchDel','course/batchDel');// 课程批量删除接口
})->middleware(\app\api\middleware\Check::class);

